home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 3 / MacMania 3.toast / Demo's / KarmaMacDemo / GAME_G1.DXR / 00219.ls < prev    next >
Encoding:
Text File  |  1995-10-24  |  1.3 KB  |  46 lines

  1. on moveDownRight
  2.   global SpinCount, MoveDirection, right, myState, BallinSprite
  3.   if SpinCount < 9 then
  4.     set the locV of sprite 28 to the locV of sprite 28 + 3
  5.   else
  6.     if SpinCount < 11 then
  7.       set the locV of sprite 28 to the locV of sprite 28 + 2
  8.       set the locH of sprite 28 to the locH of sprite 28 + 1
  9.     else
  10.       if SpinCount < 13 then
  11.         set the locV of sprite 28 to the locV of sprite 28 + 1
  12.         set the locH of sprite 28 to the locH of sprite 28 + 1
  13.       else
  14.         if SpinCount < 15 then
  15.           set the locV of sprite 28 to the locV of sprite 28 + 1
  16.           set the locH of sprite 28 to the locH of sprite 28 + 2
  17.         else
  18.           if SpinCount < 21 then
  19.             set the locH of sprite 28 to the locH of sprite 28 + 3
  20.           else
  21.             if (BallinSprite <> 17) and (BallinSprite <> 22) then
  22.               set myState to 0
  23.             end if
  24.           end if
  25.         end if
  26.       end if
  27.     end if
  28.   end if
  29.   if SpinCount = 21 then
  30.     set the locH of sprite 28 to the locH of sprite 28 + 1
  31.     if BallinSprite = 17 then
  32.       DropingRight3()
  33.     else
  34.       if BallinSprite = 22 then
  35.         DropingRight4()
  36.       else
  37.         set SpinCount to 0
  38.         set MoveDirection to right
  39.       end if
  40.     end if
  41.   else
  42.     set SpinCount to SpinCount + 1
  43.   end if
  44.   updateStage()
  45. end
  46.